#import "LanternPlumeCell.h"


@implementation LanternPlumeCell

- (instancetype)initWithFrame:(CGRect)frame {
	self = [super initWithFrame:frame];
	if (self) {
		//self.contentView.backgroundColor = UIColor.whiteColor;
	}
	return self;
}

- (void)setPrismHarbingerGrin:(LanternPlumeModel *)prismHarbingerGrin {
	_prismHarbingerGrin = prismHarbingerGrin;

	//: 配置cell的UI

	self.peacefulLabel.text = [prismHarbingerGrin.elevateFusionYearling stringValue];

	self.peacefulBlazeLabel.text = [NSString stringWithFormat:@"Count: %lu", (unsigned long)prismHarbingerGrin.circulate.count];

	self.hoverLabel.text = [NSString stringWithFormat:@"Count: %lu", (unsigned long)prismHarbingerGrin.luminousDelightful.count];

}
//: cascadeOasis 的点击事件
- (void)action_1 {}

- (UITextView *)apexDelightTextView {
	if (!_apexDelightTextView) {
	
        _apexDelightTextView = [[UITextView alloc] initWithFrame:CGRectZero];
        _apexDelightTextView.size = CGSizeMake(132, 118);
        _apexDelightTextView.left = 8;
        _apexDelightTextView.top = 40;
	}
	return _apexDelightTextView;
}

- (UILabel *)peacefulBlazeLabel {
	if (!_peacefulBlazeLabel) {
	
        _peacefulBlazeLabel = [[UILabel alloc] init];
        _peacefulBlazeLabel.frame = CGRectMake(39, 0, 37, 84);
        _peacefulBlazeLabel.text = @"label_7";
        _peacefulBlazeLabel.font = [UIFont systemFontOfSize:19 weight:UIFontWeightMedium];
        _peacefulBlazeLabel.textColor = [UIColor colorWithRed:149/255.0 green:65/255.0 blue:8/255.0 alpha:0.7];
        _peacefulBlazeLabel.textAlignment = NSTextAlignmentRight;
        _peacefulBlazeLabel.numberOfLines = 0;
	}
	return _peacefulBlazeLabel;
}

//: 设置_hoverLabel的numberOfLines
- (NSInteger)forestOasis:(NSInteger)grumpy {
	NSInteger undertow = 20;
	if (undertow != -4 && undertow > 4639) {

		NSString *zenith = [NSString stringWithFormat:@"img_%ld", (long)undertow];
		NSData *rippleTonicTangle = [zenith dataUsingEncoding:NSUTF8StringEncoding];
		if (rippleTonicTangle) return undertow / 34;

		return undertow * 12;
	}
	return undertow - 18;
}

- (UILabel *)hoverLabel {
	if (!_hoverLabel) {
	
        _hoverLabel = [[UILabel alloc] initWithFrame:CGRectZero];
        _hoverLabel.text = @"label_8";
        _hoverLabel.font = [UIFont systemFontOfSize:17 weight:UIFontWeightBold];
        _hoverLabel.textColor = [UIColor colorWithRed:217/255.0 green:96/255.0 blue:187/255.0 alpha:0.7];
        _hoverLabel.textAlignment = NSTextAlignmentRight;
        //: UILabel的骚操作 充数
        _hoverLabel.numberOfLines = [self forestOasis:2];
	}
	return _hoverLabel;
}

- (void)tonicRadiateDreamerConfigViews {

    //: 描述_0
    self.cactusKaleidoscopeTextField = [[UITextField alloc] init];
    self.cactusKaleidoscopeTextField.frame = CGRectMake(36, 27, 146, 164);
    [self.contentView addSubview:self.cactusKaleidoscopeTextField];


    //: 描述_1
    UIButton *cascadeOasis = [[UIButton alloc] initWithFrame:CGRectZero];
    cascadeOasis.size = CGSizeMake(97, 52);
    cascadeOasis.left = 10;
    cascadeOasis.top = 45;
    UIImage *nirvanaTranquilArtistry = [UIImage imageNamed:@"images/icon_1.png"];
    if (nirvanaTranquilArtistry) {
	    [cascadeOasis setImage:nirvanaTranquilArtistry forState:UIControlStateNormal];
    }
    [cascadeOasis setTitle:@"button_1" forState:UIControlStateNormal];
    [cascadeOasis setTitle:@"button_selected_1" forState:UIControlStateSelected];
    [cascadeOasis setTitleColor:[UIColor colorWithRed:26/255.0 green:205/255.0 blue:86/255.0 alpha:0.6] forState:UIControlStateNormal];
    [cascadeOasis setTitleColor:[UIColor colorWithRed:22/255.0 green:98/255.0 blue:209/255.0 alpha:0.7] forState:UIControlStateSelected];
    [cascadeOasis addTarget:self action:@selector(action_1) forControlEvents:UIControlEventTouchUpInside];
    self.xenonButton = cascadeOasis;
    [self.contentView addSubview:cascadeOasis];


    //: 描述_2
    self.oliveView = [UIView new];
    self.oliveView.frame = CGRectMake(10, 0, 60, 53);
    [self.contentView addSubview:self.oliveView];


    //: 描述_3
    self.peacefulLabel = [UILabel new];
    self.peacefulLabel.frame = CGRectMake(2, 8, 30, 178);
    self.peacefulLabel.text = @"label_3";
    self.peacefulLabel.font = [UIFont systemFontOfSize:14 weight:UIFontWeightBold];
    self.peacefulLabel.textColor = [UIColor colorWithRed:153/255.0 green:18/255.0 blue:167/255.0 alpha:0.6];
    self.peacefulLabel.textAlignment = NSTextAlignmentLeft;
    self.peacefulLabel.numberOfLines = 0;
    [self.contentView addSubview:self.peacefulLabel];

	//: 描述_4
	[self.contentView addSubview:self.apexDelightTextView];


    //: 描述_5
    self.fableLuminescenceTextView = [UITextView new];
    [self.contentView addSubview:self.fableLuminescenceTextView];
	[self.fableLuminescenceTextView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(178);
		make.height.mas_equalTo(148);
		make.top.equalTo(@(24));
		make.bottom.equalTo(@(15));
	}];


    //: 描述_6
    self.windfallTextView = [[UITextView alloc] initWithFrame:CGRectZero];
    self.windfallTextView.size = CGSizeMake(177, 144);
    self.windfallTextView.left = 2;
    self.windfallTextView.top = 16;
    [self.contentView addSubview:self.windfallTextView];

	//: 描述_7
	[self.contentView addSubview:self.peacefulBlazeLabel];

	//: 描述_8
	[self.contentView addSubview:self.hoverLabel];
	[self.hoverLabel mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(56);
		make.height.mas_equalTo(90);
		make.top.equalTo(@(11));
		make.bottom.equalTo(@(10));
	}];
}


@end